﻿<Page
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:VMDS_GUIClient_ViewModels_Management="clr-namespace:VMDS.GUIClient.ViewModels.Management" 
	  xmlns:ns="clr-namespace:VMDS.GUIClient.Helper" 
	  xmlns:Model="clr-namespace:VMDS.GUIClient.Model" x:Name="page" x:Class="VMDS.GUIClient.Views.Management.StorageManagement" 
	  xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"

      mc:Ignorable="d" 
      d:DesignHeight="417" d:DesignWidth="726"
	Title="StorageManagement">
	<Page.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="/VMDS.GUIClient;component/Simple Styles.xaml"/>
				<ResourceDictionary Source="/VMDS.GUIClient;component/Views/AutoScrollListBoxDictionary.xaml"/>
				<ResourceDictionary Source="/VMDS.GUIClient;component/Views/ResourceDictionary1.xaml"/>
			</ResourceDictionary.MergedDictionaries>
			<ns:BooleanToHiddenVisibility x:Key="BooleanToHiddenVisibility"/>
			<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
			<Storyboard x:Key="OnLoaded1">
				<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="page">
					<EasingDoubleKeyFrame KeyTime="0" Value="0.075"/>
					<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="1"/>
				</DoubleAnimationUsingKeyFrames>
			</Storyboard>
		</ResourceDictionary>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource OnLoaded1}"/>
		</EventTrigger>
	</Page.Triggers>

	<Page.DataContext>
		<VMDS_GUIClient_ViewModels_Management:StorageManagementViewModel/>
	</Page.DataContext>

    <Grid>
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="0.43*"/>
    		<ColumnDefinition Width="0.57*"/>
    	</Grid.ColumnDefinitions>
    	<Grid.RowDefinitions>
    		<RowDefinition Height="40"/>
    		<RowDefinition Height="0.477*"/>
    		<RowDefinition Height="0.523*"/>
    	</Grid.RowDefinitions>
    	
        <ListBox Margin="18,0,97,45" Style="{DynamicResource ListBoxWithAutoScroll_Vertical}" ItemsSource="{Binding Storages}" Background="{x:Null}" ScrollViewer.VerticalScrollBarVisibility="Auto" ItemTemplate="{DynamicResource MyEquityTemplate2}" BorderBrush="#FF397589" BorderThickness="1" Grid.Row="1" SelectedValue="{Binding CurrentStorage, Mode=TwoWay}" />
        <TextBlock Margin="0" TextWrapping="Wrap" Text="Управление хранилищами" HorizontalAlignment="Center" FontSize="21.333" TextAlignment="Center"/>
        <WebBrowser x:Name="webBrowser" Margin="10,0,0,0" Grid.Row="2" ns:WebBrowserUtility.BindableSource="{Binding CurrentStorage.Path}" Grid.ColumnSpan="2" Visibility="{Binding BrowserVisible, Converter={StaticResource BooleanToHiddenVisibility}}"/>

    </Grid>
</Page>
